package com.itheima.clone.serializableDeppCopy;

/**
 * @program: itheima-jdk8
 * @description:
 * @author: zhanghz001
 * @create: 2021-01-10 11:29
 **/
public class CloneableDemo {
    
    public static void main(String[] args) throws CloneNotSupportedException {
        // Student s1 = new Student("name1", 11,
        //         new Person("name_person_1", 111));
        // System.out.println(s1);
        //
        // //
        // Student s2 = (Student) s1.clone();
        // s2.setAge(22);
        // s2.setName("name2");
        // s2.setPerson(new Person("name_person_2", 222));
        // System.out.println(s2);
    }
}
